// components/header_item/header_item.js
const mybehavior = require("../../behaviors/requests")
Component({
  /**
   * 组件的属性列表
   */
  behaviors: [mybehavior],
  properties: {
    url: {
      type: String,
      value: ''
    },
    module_name: {
      type: String,
      value: ''
    },
    custom_class: {
      type: String,
      value: 'deng'
    },
    item_name: {
      type: String,
      value: ''
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    url1: "https://logisticsengineering.gree.com/gm_user/show_manage",

  },

  /**
   * 组件的方法列表
   */
  methods: {
    navigate_to(e) {
      const target = e.target;
      console.log(target);
      const url = target.dataset.url;

      wx.redirectTo({
        url
      });
      this.triggerEvent("close_popup");
    },
    routeJump(e) {
      wx.requestSubscribeMessage({
        tmplIds: ['Qq4EMCt24ZVzeR74sHCcdCgZyo7pus8Bf9knNoUHPpM'],

      })
      const target = e.target;
      console.log(target);
      const key = target.dataset.url;
      wx.redirectTo({
        url: key,
      })
  
     




    },
  }
})
